package top.oauth2.sms.service;

import top.oauth2.sms.enums.SmsTypeEnum;
import top.oauth2.sms.exception.BaseException;

/**
 * @author xphu
 * @version 1.0
 * @date 2021/9/16 11:59
 */
public abstract class SelectSmsService {

    /**
     * 验证短信验证码
     * @param phone 手机号
     * @param code  验证码
     * @param templateId  短信模板id
     * @param typeEnum  短信提供商类型枚举
     * @author xphu
     * @date: 2021/9/16 10:11
     */
    abstract public boolean sendSmsMsg(String phone, String code, String templateId, SmsTypeEnum typeEnum) throws BaseException;
}
